<?php
include("../common.inc.php");
include("function_common.php");

//echo $_SERVER['SERVER_SOFTWARE'].php_sapi_name( ).round( disk_free_space( "." ) / 1048576, 2 )."M".PHP_OS.date( "Y年n月j日 H:i:s" );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="css/common.css" type="text/css" />
<title>管理区域</title>
</head>

<body>
<div id="man_zone">
  <table width="99%" border="0" align="center"  cellpadding="3" cellspacing="1" class="table_style">
    <tr>
      <td width="18%" class="left_title_1"><span class="left-title">系统基本信息：</span></td>
      <td width="82%">操作系统：<?php echo PHP_OS;?>&nbsp;&nbsp;&nbsp;服务软件：<?php echo $_SERVER['SERVER_SOFTWARE']?>&nbsp;</td>
    </tr>
    <tr>
      <td class="left_title_2">当前登录管理员：</td>
      <td>用户名：<font color='red'><?php echo $_ADMINUSERS['user'];?></font>&nbsp;&nbsp;最后登录时间：<?php echo date('Y-m-d H:i:s',$_ADMINUSERS['lastlogin'])?>&nbsp;&nbsp;登录次数：<?php echo $_ADMINUSERS['logincount'];?></td>
    </tr>
    <tr>
      <td class="left_title_1">php版本号：</td>
      <td><?php echo @phpversion(); ?>&nbsp;</td>
    </tr>

    <tr>
      <td class="left_title_1">是否安全模式：</td>
      <td><?php
	  $isSafeMode = @ini_get("safe_mode");
	    	if($isSafeMode) {
          		echo "你的系统以安全模式运行";
          	}
          	else {
          		echo "你的系统以非安全模式运行";
          	}?>&nbsp;</td>
    </tr>
    <tr>
      <td class="left_title_2">Register_Globals：</td>
      <td><font color='red'><?php echo ini_get("register_globals") ? 'On' : 'Off'?></font>&nbsp;</td>
    </tr>
    <tr>
      <td class="left_title_1">Magic_Quotes_Gpc：&nbsp;</td>
      <td><font color='red'><?php echo ini_get("magic_quotes_gpc") ? 'On' : 'Off'?></font>&nbsp;</td>
    </tr>
    <tr>
      <td class="left_title_2">剩余可用空间：</td>
      <td>剩余可用空间：<font color='red'><?php echo round( disk_free_space( "." ) / 1048576, 2 )."M"?></font></td>
    </tr>
    <tr>
      <td class="left_title_2">支持最大上传文件：</td>
      <td><?php echo ini_get("post_max_size")?>&nbsp;</td>
    </tr>
    <tr>
      <td class="left_title_1">是否允许打开远程连接：&nbsp;</td>
      <td><?php echo ini_get("allow_url_fopen") ? '支持' : '不支持'; ?>&nbsp;</td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td class="left_title_2"><span class="left_title_1">软件版本信息：</span></td>
      <td>版本名称：<?php echo SOFT_NAME?> <font color=red><?php echo $softtype; ?></font>&nbsp;</td>
    </tr>
    <tr>
      <td class="left_title_1"><span class="left_title_2">版本号：</span>&nbsp;</td>
      <td><?php echo SOFT_VERSION?>&nbsp;</td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td class="left_title_2"><span class="left_title_1">开发团队：</span>&nbsp;</td>
      <td>郑州全搜索计算机有限公司</td>
    </tr>

  </table>
</div>
</body>
</html>
